package com.weimob.cloud.api.crm.client;

import com.dtflys.forest.annotation.BaseRequest;
import com.dtflys.forest.annotation.JSONBody;
import com.dtflys.forest.annotation.Post;
import com.weimob.cloud.api.common.WeimobCloudRsp;
import com.weimob.cloud.api.crm.req.WeimobCrmBalanceAdjustReq;
import com.weimob.cloud.api.crm.req.WeimobCrmBalanceGetReq;
import com.weimob.cloud.api.crm.rsp.WeimobCrmBalanceAdjustRsp;
import com.weimob.cloud.api.crm.rsp.WeimobCrmBalanceGetRsp;
import com.weimob.cloud.api.token.interceptor.WeimobTokenInterceptor;

/**
 * 微明云平台CRM余额管理客户端接口
 */
@BaseRequest(baseURL = "https://dopen.weimob.com/apigw/weimob_crm/v2.0/balance", interceptor = WeimobTokenInterceptor.class)
public interface WeimobCrmBalanceClient {

    /**
     * 调整余额
     */
    @Post(url = "/adjust?accesstoken=${accessToken}")
    WeimobCloudRsp<WeimobCrmBalanceAdjustRsp> balanceAdjust(@JSONBody WeimobCrmBalanceAdjustReq req);

    /**
     * 查询用户余额
     */
    @Post(url = "/get?accesstoken=${accessToken}")
    WeimobCloudRsp<WeimobCrmBalanceGetRsp> balanceGet(@JSONBody WeimobCrmBalanceGetReq req);
}
